package com.molin.IOtest.propertiesMap;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        //读取
        Properties properties=new Properties();
        FileReader fr=new FileReader("D:\\IdeaProjects\\BasicCode\\mIdeaTest\\src\\com\\molin\\IOtest\\propertiesMap\\prop.properties");

        properties.load(fr);
        fr.close();
        System.out.println(properties);
    }
}
